home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / Sample Code Update 01⁄96 / MenuScripter 3.1 / Sources / MSAppleEvents.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-20  |  1.9 KB  |  72 lines  |  [TEXT/MPS ]

  1. /*
  2.     MSAppleEvents.h 
  3.     
  4.     Version 3.1
  5.     
  6.     Copyright © 1995 Apple Computer, Inc., all rights reserved.
  7.     
  8.     MenuScripter by Nigel Humphreys and Jon Lansdell
  9.     AppleEvent to script extensions by Greg Sutton
  10. */
  11.  
  12. #ifndef __MSAPPLEEVENTS__
  13. #define __MSAPPLEEVENTS__
  14.  
  15. #include <Types.h>
  16. #include <Quickdraw.h>
  17. #include <Packages.h>
  18. #include <GestaltEqu.h>
  19. #include <Printing.h>
  20. #include <AppleEvents.h>
  21.  
  22. #ifndef __MSGLOBALS__
  23. #include <MSGlobals.h>
  24. #endif
  25.  
  26. pascal void InitAppleEvents(void);
  27. pascal void DoAppleEvent(EventRecord theEvent);
  28.  
  29. pascal OSErr MakeSelfAddress(AEAddressDesc *selfAddress);
  30.  
  31. /*
  32.     Text Commands
  33. */
  34. pascal void IssueCutCommand(DPtr theDocument);
  35. pascal void IssueCopyCommand(DPtr theDocument);
  36. pascal void IssuePasteCommand(DPtr theDocument);
  37. pascal void IssueClearCommand(DPtr theDocument);
  38. pascal void IssueFontCommand(DPtr theDocument, short theItem);
  39. pascal void IssueSizeCommand(DPtr theDocument, short theItem);
  40. pascal void IssueStyleCommand(DPtr theDocument, short theItem);
  41.  
  42. /*
  43.     Window Commands
  44. */
  45.  
  46. pascal void IssueZoomCommand(WindowPtr whichWindow, short whichPart);
  47. pascal void IssueCloseCommand(WindowPtr whichWindow);
  48. pascal void IssueSizeWindow(WindowPtr whichWindow, short newHSize,short newVSize);
  49. pascal void IssueMoveWindow(WindowPtr whichWindow, Rect sizeRect);
  50. pascal void IssuePageSetupWindow(WindowPtr whichWindow, TPrint thePageSetup);
  51. pascal void IssuePrintWindow(WindowPtr whichWindow);
  52. pascal void IssueSelectWindowCommand(WindowPtr theWindow, WindowPtr oldFrontWindow);
  53.  
  54. /*
  55.     Document Commands
  56. */
  57. pascal OSErr IssueAEOpenDoc(FSSpec myFSSpec);
  58. pascal void  IssueAENewWindow(void);
  59. pascal OSErr IssueSaveCommand(WindowPtr theWindow, FSSpecPtr where);
  60.                                                 
  61. pascal OSErr IssueRevertCommand(WindowPtr theWindow);
  62. pascal OSErr IssueQuitCommand(void);
  63.  
  64. /*
  65.     Recording of Keystrokes
  66. */
  67.  
  68. pascal void AddKeyToTypingBuffer(DPtr theDocument, char theKey);
  69. pascal void FlushAndRecordTypingBuffer(void);
  70.  
  71.  
  72. #endif